#ifndef FILEHANDLER_H
#define FILEHANDLER_H

#include <QtCore>

class FileHandler
{
public:
    enum OpenAction {
        InitDatabase,
        AssumeInitialized
    };

    FileHandler();

    static bool openFileAt(QString path, OpenAction action);
    static void closeFile();

private:

    static void initializeDatabase();
    static QString readTextFile(QString path);
};

#endif // FILEHANDLER_H
